
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    
<?php

session_start(); // NEVER forget this!
$_SESSION['username'] = 'cprice';
if(!isset($_SESSION['username']))
{
    die("To access this page, you need to <a href='login.php'>LOGIN</a>"); // Make sure they are logged in!
} // What the !isset() code does, is check to see if the variable $_SESSION['loggedin'] is there, and if it isn't it kills the script telling the user to log in!
else{

?>
    <head>
        <title>Menú Sistemas</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
        <link rel="stylesheet" type="text/css" href="css/main.css">
        <link rel="Stylesheet" type="text/css" href="css/custom-theme/jquery-ui-1.9.1.custom.css" />
        <link rel="stylesheet" type="text/css" href="css/jquery.cleditor.css" />
        <script src="js/jquery-1.8.2.js"></script>
        <script src="js/jquery-ui-1.9.1.custom.min.js"></script>
        <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script>
        <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script> 
        <script src="js/highstock.js"></script>
        <script src="js/modules/exporting.js"></script>
        <script src="js/jquery.cleditor.min.js"></script>
        <script src="js/ckeditor/ckeditor.js"></script>
        <script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
        <script src="js/main.js"></script>
    </head>
    <body>
        <div id="wrapper">
            <div id="usuario">
                <?php 
                echo 'Bienvenido '.$_SESSION['username']." | <a href='logout.php'>Cerrar Sesión</a>"; 
                echo ''
                
                ?> 
            </div>

            <div id="menu">
                <ul>
                    <li><a id="inicio_a" href="#inicio">Inicio</a></li>
                    <li><a id="variables_a" href="#variables">Variables</a></li>
                    <li><a id="conf_grafico_a" href="#conf_grafico">Configuración Gráfico</a></li>
                    <li><a id="grafico_a" href="#grafico">Gráfico</a></li>
                    <li><a id="informes_a" href="#informes">Informes</a></li>
                </ul>
                <div id="inicio">
                    
                </div>
                <div id="variables">
                   
                   <div id="sistemas">
                    <fieldset>
                        <legend>Sistemas</legend>
                        <table class="center">
                        <tr>
                    <td><input type="checkbox" id="aocs" class="sistema"/><label id="aocs_label" for="aocs" >AOCS</label></td>
            
                    <td><input type="checkbox" id="software" class="sistema" /><label id="software_label" for="software">SOFTWARE</label></td>
            
                    <td><input type="checkbox" id="power" class="sistema" /><label id="power_label" for="power">POWER</label></td>
            
                    <td><input type="checkbox" id="thermal" class="sistema" /><label id="thermal_label" for="thermal">THERMAL</label></td>
            
                    <td><input type="checkbox" id="payload" class="sistema" /><label id="payload_label" for="payload">PAYLOAD</label></td>
            
                    <td><input type="checkbox" id="rf" class="sistema" /><label id="rf_label" for="rf">RF</label></td>
                    </fieldset>
                       </tr>
                       </table>
                   </div>
                
                    <div id="aocs_p" class="parametros">
                        <fieldset>
                            <legend>AOCS Parámetros</legend>
                            <table class="center">
                            <tr>
                            <td><input type="checkbox" id="dod" class="param" /><label id="dod_label" for="dod">DOD</label></td>
                            <td><input type="checkbox" id="ibatd" class="param" /><label id="ibatd_label" for="ibatd">IBATD</label></td>
                            <td><input type="checkbox" id="tmwrwx" class="param reaction_wheels" /><label id="tmwrwx_label" for="tmwrwx">TMWRWX</label></td>
                            <td><input type="checkbox" id="tmwrwy1" class="param reaction_wheels" /><label id="tmwrwy1_label" for="tmwrwy1">TMWRWY1</label></td>
                            <td><input type="checkbox" id="tmwrwy2" class="param reaction_wheels" /><label id="tmwrwy2_label" for="tmwrwy2">TMWRWY2</label></td>
                            <td><input type="checkbox" id="tmwrwz" class="param reaction_wheels" /><label id="tmwrwz_label" for="tmwrwz">TMWRWZ</label></td>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    
                    <div id="aocs_s" class="shortcuts">
                        <fieldset>
                            <legend>AOCS Multiparámetros</legend>
                            <table class="center">
                            <tr>
                                <td><input type="checkbox" id="reaction_wheels" class="shortcut" /><label id="reaction_wheels_label" for="reaction_wheels">REACTION WHEELS</label></td>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    
                   <div id="software_p" class="parametros">
                        <fieldset>
                            <legend>SOFTWARE Parámetros</legend>
                            <table class="center">
                            <tr>
                            <td><input type="checkbox" id="lacerror" class="param" /><label id="lacerror_label" for="lacerror">LACERROR</label></td>
                            <td><input type="checkbox" id="laccount" class="param" /><label id="laccount_label" for="laccount">LACCOUNT</label></td>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    <div id="power_p" class="parametros">
                        <fieldset>
                            <legend>POWER Parámetros</legend>
                             <table class="center">
                            <tr>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    <div id="thermal_p" class="parametros">
                        <fieldset>
                            <legend>THERMAL Parámetros</legend>
                            <table class="center">
                            <tr>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    <div id="payload_p" class="parametros">
                        <fieldset>
                            <legend>PAYLOAD Parámetros</legend>
                            <table class="center">
                            <tr>
                            </tr>
                            </table>
                        </fieldset>
                    </div>
                    
                    <div id="rf_p" class="parametros">
                        <fieldset>
                            <legend>RF Parámetros</legend>
                            <table class="center">
                            <tr>
                            <td><input type="checkbox" id="rssivalue1" class="param rssivalue" /><label id="rssivalue1_label" for="rssivalue1">RSSI VALUE1</label></td>
                            <td><input type="checkbox" id="rssivalue2" class="param rssivalue" /><label id="rssivalue2_label" for="rssivalue2">RSSI VALUE2</label></td>
                            <td><input type="checkbox" id="hpa_mode" class="param" /><label id="hpa_mode_label" for="hpa_mode">HPA MODE</label></td>
                            <td><input type="checkbox" id="hpa_power" class="param" /><label id="hpa_power_label" for="hpa_power">HPA POWER</label></td>
                            <td><input type="checkbox" id="rflevel" class="param" /><label id="rflevel_label" for="rflevel">RF LEVEL</label></td>
                            <td><input type="checkbox" id="numalim" class="param" /><label id="numalim_label" for="numalim">NUMALIM</label></td>
                            <td><input type="checkbox" id="s_lhcp_cag" class="param" /><label id="s_lhcp_cag_label" for="s_lhcp_cag">S_LHCP_CAG</label></td>
                            <td><input type="checkbox" id="s_rhcp_cag" class="param" /><label id="s_rhcp_cag_label" for="s_rhcp_cag">S_RHCP_CAG</label></td>
                            </tr>
                            <tr>
                            <td><input type="checkbox" id="sspaalim" class="param" /><label id="sspaalim_label" for="sspaalim">SSPAALIM</label></td>
                            <td><input type="checkbox" id="vco" class="param" /><label id="vco_label" for="vco">VCO</label></td>
                            <td><input type="checkbox" id="stmhd" class="param" /><label id="stmhd_label" for="stmhd">STMHD</label></td>
                            <td><input type="checkbox" id="srx1" class="param srx" /><label id="srx1_label" for="srx1">SRX1</label></td>
                            <td><input type="checkbox" id="srx2" class="param srx" /><label id="srx2_label" for="srx2">SRX2</label></td>
                            <td><input type="checkbox" id="hpa_demodulator_status" class="param" /><label id="hpa_demodulator_status_label" for="hpa_demodulator_status">HPA STATUS</label></td>
                            <td><input type="checkbox" id="rythm_status" class="param" /><label id="rythm_status_label" for="rythm_status">RYTHM STATUS</label></td>
                            </tr>
                            </table>
                        </fieldset> 
                    </div>
                    
                     <div id="rf_s" class="shortcuts">
                        <fieldset>
                            <legend>RF Multiparámetros</legend>
                            <table class="center">
                            <tr>
                                <td><input type="checkbox" id="rssivalue" class="shortcut" /><label id="rssivalue_label" for="rssivalue">RSSI VALUE</label></td>
                                <td><input type="checkbox" id="srx" class="shortcut" /><label id="reaction_wheels_label" for="srx">SRX</label></td>
                            </tr>
                            </table>
                         </fieldset>
                    </div>
                    
                </div>
                
                <div id="conf_grafico">
                    
                    <div id="advertencia_conf" class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
                        <p>
                        <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                        <strong>Atención:</strong>
                        No se ha elegido un parámetro o multiparámetro para graficar.
                        </p>
                    </div>
                    
                    <div id="dod_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:DOD</legend>
                             Valor:
                                <input type="radio" name="dod" value="OBV">OBV
                                <input type="radio" name="dod" value="RV">RV
                                <input type="radio" name="dod" value="RPV" checked >RPV
                            
                            <button value="dod" class="eliminar" >Eliminar</button>
                        </fieldset>
                    </div>
                    <div id="ibatd_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:IBATD</legend>
                             Valor
                                <input type="radio" name="ibatd" value="OBV">OBV
                                <input type="radio" name="ibatd" value="RV">RV
                                <input type="radio" name="ibatd" value="RPV" checked>RPV
                        
                            <button value="ibatd" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    <div id="hpa_mode_param" class="param_frame">
                        <fieldset>
                            <legend>RF:HPA MODE</legend>
                             Valor
                                <input type="radio" name="hpa_mode" value="OBV">OBV
                                <input type="radio" name="hpa_mode" value="RV">RV
                                <input type="radio" name="hpa_mode" value="SPV" checked>SPV
                        
                            <button value="hpa_mode" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    <div id="hpa_power_param" class="param_frame">
                        <fieldset>
                            <legend>RF:HPA POWER</legend>
                             Valor
                                <input type="radio" name="hpa_power" value="OBV">OBV
                                <input type="radio" name="hpa_power" value="RV">RV
                                <input type="radio" name="hpa_power" value="RPV" checked>RPV
                        
                            <button value="hpa_power" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    <div id="rflevel_param" class="param_frame">
                        <fieldset>
                            <legend>RF:RF LEVEL</legend>
                             Valor
                                <input type="radio" name="rflevel_tipo" value="OBV">OBV
                                <input type="radio" name="rflevel_tipo" value="RV">RV
                                <input type="radio" name="rflevel_tipo" value="RPV" checked>RPV
                             Modalidad
                                <input type="radio" name="rflevel_modo" value="normal">Normal
                                <input type="radio" name="rflevel_modo" value="max_min">Máximo y Mínimo
                            <button value="rflevel" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="rssivalue1_param" class="param_frame">
                        <fieldset>
                            <legend>RF:RSSI1 VALUE</legend>
                             Valor
                                <input type="radio" name="rssivalue1" value="OBV">OBV
                                <input type="radio" name="rssivalue1" value="RV">RV
                                <input type="radio" name="rssivalue1" value="RPV" checked>RPV
                        
                            <button value="rssivalue1" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="rssivalue2_param" class="param_frame">
                        <fieldset>
                            <legend>RF:RSSI2 VALUE</legend>
                             Valor
                                <input type="radio" name="rssivalue2" value="OBV">OBV
                                <input type="radio" name="rssivalue2" value="RV">RV
                                <input type="radio" name="rssivalue2" value="RPV" checked>RPV
                        
                            <button value="rssivalue2" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="numalim_param" class="param_frame">
                        <fieldset>
                            <legend>RF:NUMALIM</legend>
                             Valor
                                <input type="radio" name="numalim" value="OBV">OBV
                                <input type="radio" name="numalim" value="RV">RV
                                <input type="radio" name="numalim" value="RPV" checked>RPV
                        
                            <button value="numalim" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="s_lhcp_cag_param" class="param_frame">
                        <fieldset>
                            <legend>RF:S_LHCP_CAG</legend>
                             Valor
                                <input type="radio" name="s_lhcp_cag" value="OBV">OBV
                                <input type="radio" name="s_lhcp_cag" value="RV">RV
                                <input type="radio" name="s_lhcp_cag" value="RPV" checked>RPV
                        
                            <button value="s_lhcp_cag" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="s_rhcp_cag_param" class="param_frame">
                        <fieldset>
                            <legend>RF:S_RHCP_CAG</legend>
                             Valor
                                <input type="radio" name="s_rhcp_cag" value="OBV">OBV
                                <input type="radio" name="s_rhcp_cag" value="RV">RV
                                <input type="radio" name="s_rhcp_cag" value="RPV" checked>RPV
                        
                            <button value="s_rhcp_cag" class="eliminar">Eliminar</button>
                        </fieldset>
                     </div>
                    
                    <div id="sspaalim_param" class="param_frame">
                        <fieldset>
                            <legend>RF:SSPAALIM</legend>
                             Valor
                                <input type="radio" name="sspaalim" value="OBV">OBV
                                <input type="radio" name="sspaalim" value="RV">RV
                                <input type="radio" name="sspaalim" value="RPV" checked>RPV
                        
                            <button value="sspaalim" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="vco_param" class="param_frame">
                        <fieldset>
                            <legend>RF:VCO</legend>
                             Valor
                                <input type="radio" name="vco" value="OBV">OBV
                                <input type="radio" name="vco" value="RV">RV
                                <input type="radio" name="vco" value="RPV" checked>RPV
                        
                     
                            <button value="vco" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="stmhd_param" class="param_frame">
                        <fieldset>
                            <legend>RF:STMHD</legend>
                             Valor
                                <input type="radio" name="stmhd" value="OBV">OBV
                                <input type="radio" name="stmhd" value="RV">RV
                                <input type="radio" name="stmhd" value="SPV" checked>RPV
                        
                            <button value="stmhd" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="hpa_demodulator_status_param" class="param_frame">
                        <fieldset>
                            <legend>RF:HPA DEMODULATOR STATUS</legend>
                             Valor
                                <input type="radio" name="hpa_demodulator_status" value="OBV">OBV
                                <input type="radio" name="hpa_demodulator_status" value="RV">RV
                                <input type="radio" name="hpa_demodulator_status" value="IPV" checked>RPV
                        
                            <button value="hpa_demodulator_status" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="srx1_param" class="param_frame">
                        <fieldset>
                            <legend>RF:SRX1</legend>
                             Valor
                                <input type="radio" name="srx1" value="OBV">OBV
                                <input type="radio" name="srx1" value="RV">RV
                                <input type="radio" name="srx1" value="SPV" checked>SPV
                        
                            <button value="srx1" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="srx2_param" class="param_frame">
                        <fieldset>
                            <legend>RF:SRX2</legend>
                             Valor
                                <input type="radio" name="srx2" value="OBV">OBV
                                <input type="radio" name="srx2" value="RV">RV
                                <input type="radio" name="srx2" value="SPV" checked>SPV
                        
                            <button value="srx2" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="rythm_status_param" class="param_frame">
                        <fieldset>
                            <legend>RF:RYTHM STATUS</legend>
                             Valor
                                <input type="radio" name="rythm_status" value="OBV">OBV
                                <input type="radio" name="rythm_status" value="RV">RV
                                <input type="radio" name="rythm_status" value="SPV" checked>SPV
                        
                            <button value="rythm_status" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                   
                    <div id="lacerror_param" class="param_frame">
                        <fieldset>
                            <legend>SOFTWARE:LACERROR</legend>
                             Valor
                                <input type="radio" name="lacerror" value="OBV">OBV
                                <input type="radio" name="lacerror" value="RV">RV
                                <input type="radio" name="lacerror" value="IPV" checked>IPV
                        
                            <button value="lacerror" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                     <div id="laccount_param" class="param_frame">
                        <fieldset>
                            <legend>SOFTWARE:HPA DEMODULATOR STATUS</legend>
                             Valor
                                <input type="radio" name="laccount" value="OBV">OBV
                                <input type="radio" name="laccount" value="RV">RV
                                <input type="radio" name="laccount" value="IPV" checked>RPV
                        
                            <button value="laccount" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="tmwrwx_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:TMWRWX</legend>
                             Valor
                                <input type="radio" name="tmwrwx" value="OBV">OBV
                                <input type="radio" name="tmwrwx" value="RV">RV
                                <input type="radio" name="tmwrwx" value="RPV" checked>RPV
                        
                            <button value="tmwrwx" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="tmwrwy1_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:TMWRWY1</legend>
                             Valor
                                <input type="radio" name="tmwrwy1" value="OBV">OBV
                                <input type="radio" name="tmwrwy1" value="RV">RV
                                <input type="radio" name="tmwrwy1" value="RPV" checked>RPV
                        
                            <button value="tmwrwy1" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="tmwrwy2_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:TMWRWY2</legend>
                             Valor
                                <input type="radio" name="tmwrwy2" value="OBV">OBV
                                <input type="radio" name="tmwrwy2" value="RV">RV
                                <input type="radio" name="tmwrwy2" value="RPV" checked>RPV
                        
                            <button value="tmwrwy2" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="tmwrwz_param" class="param_frame">
                        <fieldset>
                            <legend>AOCS:TMWRWZ</legend>
                             Valor
                                <input type="radio" name="tmwrwz" value="OBV">OBV
                                <input type="radio" name="tmwrwz" value="RV">RV
                                <input type="radio" name="tmwrwz" value="RPV" checked>RPV
                        
                            <button value="tmwrwz" class="eliminar">Eliminar</button>
                        </fieldset>
                    </div>
                    
                    <div id="fecha">
                        <fieldset>
                            <legend>Fecha</legend>
                            <label for="desde">Desde</label>
                                <input type="text" id="desde" name="desde"/>
                            <label for="hasta">Hasta</label>
                                <input type="text" id="hasta" name="hasta"/>
                        </fieldset>
                    </div>
                    
                </div>
                
                <div id="grafico">
                    
                    
                    <div id="advertencia_graf" class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
                        <p>
                        <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                        <strong>Atención:</strong>
                        No se ha elegido un parámetro o multiparámetro para graficar.
                        </p>
                    </div>
                </div>
                
                <div id="informes">
                  
                </div>
                
            </div>
        </div>
    </body>
    <?php 
    }
    ?>
</html>